/* 
 * File:   DecoderPipleLine.cpp
 * Author: hao
 * 
 * Created on 2011年5月18日, 下午10:09
 */

#include "DecoderPipleLine.h"
#include <exception>

bool DecoderPipleLine::operator()(void * pData, size_t len, size_t * pReadData) {

    bool test;
    try {
        test = pMaster->Decoding(DecoderIndex, pData, len, pReadData);

        pSlot->StreamRunning(pData, len, bFormat, channels, rate);
    }    catch (std::exception ex) {
        return false;
    }

    return test;

}